package com.shuyu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shuyu.domain.NFT;
import com.shuyu.domain.ProductCardCode;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ProductCardCodeMapper extends BaseMapper<ProductCardCode> {
    @Select("select t1.product_id,t1.transaction_hash,t1.create_time,t1.collection_code,t1.active_status " +
            "from tbl_product_card_code t1 where t1.product_id =#{productId}")
    List<NFT> getNFTList(Integer productId);
}
